//#include <iostream>
//#include <string>
//using namespace std;
//class People
//{
//	int Page;
//public:
//	People(int t) :Page(t) 
//	{
//		cout << "Life is short, we should learn c++ harder!" << endl;
//	}
//	virtual void showage() 
//	{
//		cout << "the People's age is " << Page << endl;
//	}
//};
//class Baby:public People
//{
//	int Bage;
//public:
//	Baby(int t1, int t2) :People(t1), Bage(t2) {}
//	void showage()
//	{
//		cout << "the Baby's age is " << Bage << endl;
//	}
//};
//class Student:public Baby
//{
//	int Sage;
//public:
//	Student(int t1, int t2, int t3) :Baby(t1, t2), Sage(t3) {}
//	void showage()
//	{
//		cout << "the Sudent's age is " << Sage << endl;
//	}
//};
//class Adult:public Student
//{
//	int Aage;
//public:
//	Adult(int t1, int t2, int t3, int t4) :Student(t1, t2, t3), Aage(t4) {}
//	void showage()
//	{
//		cout << "the Adult's age is " << Aage << endl;
//	}
//};
//class Older:public Adult
//{
//	int Oage;
//public:
//	Older(int t1, int t2, int t3, int t4, int t5) :Adult(t1, t2, t3, t4), Oage(t5) {}
//	void showage()
//	{
//		cout << "the Older's age is " << Oage << endl;
//	}
//};
//int main()
//{
//	Baby b(1, 6);
//	Student s(7, 12, 18);
//	Adult a(19, 30, 40, 50);
//	Older o(60, 70, 80, 90, 100);
//	People p(0), * ptr[5] = { &p,&b,&s,&a,&o };
//	for (int i            = 0; i < 5; i++)
//		ptr[i]->showage();
//}